<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta name="Content-Type" content="text/html; charset=UTF-8" />
<title>Class: Sass::Tree::Node</title>
<link rel="stylesheet" href="style.css" tppabs="http://sass-lang.com/docs/yardoc/css/style.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="common.css" tppabs="http://sass-lang.com/docs/yardoc/css/common.css" type="text/css" media="screen" charset="utf-8" />

<script type="text/javascript" charset="utf-8">
  relpath = '../..';
  if (relpath != '') relpath += '/';
</script>
<script type="text/javascript" charset="utf-8" src="jquery.js" tppabs="http://sass-lang.com/docs/yardoc/js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="app.js" tppabs="http://sass-lang.com/docs/yardoc/js/app.js"></script>

  </head>
  <body>
    <script type="text/javascript" charset="utf-8">
      if (window.top.frames.main) document.body.className = 'frames';
    </script>
    
    <div id="header">
      <div id="menu">
  
    <a href="_index.html" tppabs="http://sass-lang.com/docs/yardoc/_index.html">Index (N)</a> &raquo; 
    <span class='title'><a href="Sass-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass.html" title="Sass (module)">Sass</a></span> &raquo; <span class='title'><a href="Tree.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree.html" title="Sass::Tree (module)">Tree</a></span>
     &raquo; 
    <span class="title">Node</span>
  
  
  <div class="noframes"><span class="title">(</span><a href="javascript:if(confirm(%27http://sass-lang.com/docs/yardoc/Sass/Tree/.  \n\nThis file was not retrieved by Teleport Pro, because the server reports that this file cannot be found.  \n\nDo you want to open it from the server?%27))window.location=%27http://sass-lang.com/docs/yardoc/Sass/Tree/.%27" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/." target="_top">no frames</a><span class="title">)</span></div>
</div>

      <div id="search">
  <a id="class_list_link" href="#">Class List</a>
  <a id="method_list_link" href="#">Method List</a>
  <a id ="file_list_link" href="#">File List</a>
</div>

      <div class="clear"></div>
    </div>
    
    <iframe id="search_frame"></iframe>
    
    <div id="content"><h1>Class: Sass::Tree::Node 
  
  
</h1>

<dl class="box">
  
    <dt class="r1">Inherits:</dt>
    <dd class="r1">
      <span class="inheritName">Object</span>
      
        <ul class="fullTree">
          <li>Object</li>
          
            <li class="next">Sass::Tree::Node</li>
          
        </ul>
        <a href="#" class="inheritanceTree">show all</a>
      
      </dd>
    
  
  
    
  
    
      <dt class="r2">Includes:</dt>
      <dd class="r2">Enumerable</dd>
      
    
  
  
    <dt class="r1 last">Defined in:</dt>
    <dd class="r1 last">/var/www/sass-pages/.sass/lib/sass/tree/node.rb</dd>
  
</dl>
<div class="clear"></div>

<h2>Overview</h2><div class="docstring">
  <div class="discussion">
    <p>The abstract superclass of all parse-tree nodes.</p>

  </div>
</div>
<div class="tags">
  
</div><div id="subclasses">
  <h2>Direct Known Subclasses</h2>
  <p class="children"><a href="CharsetNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/CharsetNode.html" title="Sass::Tree::CharsetNode (class)">CharsetNode</a>, <a href="CommentNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/CommentNode.html" title="Sass::Tree::CommentNode (class)">CommentNode</a>, <a href="ContentNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/ContentNode.html" title="Sass::Tree::ContentNode (class)">ContentNode</a>, <a href="DebugNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/DebugNode.html" title="Sass::Tree::DebugNode (class)">DebugNode</a>, <a href="DirectiveNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/DirectiveNode.html" title="Sass::Tree::DirectiveNode (class)">DirectiveNode</a>, <a href="EachNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/EachNode.html" title="Sass::Tree::EachNode (class)">EachNode</a>, <a href="ExtendNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/ExtendNode.html" title="Sass::Tree::ExtendNode (class)">ExtendNode</a>, <a href="ForNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/ForNode.html" title="Sass::Tree::ForNode (class)">ForNode</a>, <a href="FunctionNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/FunctionNode.html" title="Sass::Tree::FunctionNode (class)">FunctionNode</a>, <a href="IfNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/IfNode.html" title="Sass::Tree::IfNode (class)">IfNode</a>, <a href="MixinDefNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/MixinDefNode.html" title="Sass::Tree::MixinDefNode (class)">MixinDefNode</a>, <a href="MixinNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/MixinNode.html" title="Sass::Tree::MixinNode (class)">MixinNode</a>, <a href="PropNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/PropNode.html" title="Sass::Tree::PropNode (class)">PropNode</a>, <a href="ReturnNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/ReturnNode.html" title="Sass::Tree::ReturnNode (class)">ReturnNode</a>, <a href="RootNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/RootNode.html" title="Sass::Tree::RootNode (class)">RootNode</a>, <a href="RuleNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/RuleNode.html" title="Sass::Tree::RuleNode (class)">RuleNode</a>, <a href="TraceNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/TraceNode.html" title="Sass::Tree::TraceNode (class)">TraceNode</a>, <a href="VariableNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/VariableNode.html" title="Sass::Tree::VariableNode (class)">VariableNode</a>, <a href="WarnNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/WarnNode.html" title="Sass::Tree::WarnNode (class)">WarnNode</a>, <a href="WhileNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/WhileNode.html" title="Sass::Tree::WhileNode (class)">WhileNode</a></p>
</div>


  
  <h2>Instance Attribute Summary</h2>
  <ul class="summary">
    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#children-instance_method" title="#children (instance method)">- (Array&lt;Tree::Node&gt;) <strong>children</strong> </a>
    

    
  </span>
  
  
    
    
  
  
  
  

  
    <span class="summary_desc">The child nodes of this node.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#filename-instance_method" title="#filename (instance method)">- (String) <strong>filename</strong> </a>
    

    
  </span>
  
  
    
    
  
  
  
  

  
    <span class="summary_desc">The name of the document on which this node appeared.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#has_children-instance_method" title="#has_children (instance method)">- (Boolean) <strong>has_children</strong> </a>
    

    
  </span>
  
  
    
    
  
  
  
  

  
    <span class="summary_desc">Whether or not this node has child nodes.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#line-instance_method" title="#line (instance method)">- (Fixnum) <strong>line</strong> </a>
    

    
  </span>
  
  
    
    
  
  
  
  

  
    <span class="summary_desc">The line of the document on which this node appeared.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#options-instance_method" title="#options (instance method)">- ({Symbol =&gt; Object}) <strong>options</strong> </a>
    

    
  </span>
  
  
    
    
  
  
  
  

  
    <span class="summary_desc">The options hash for the node.</span>
  
</li>

    
  </ul>


  <h2>Instance Method Summary</h2>

  <ul class="summary">
    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#%3C%3C-instance_method" title="#&lt;&lt; (instance method)">- <strong>&lt;&lt;</strong>(child) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Appends a child to the node.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#%3D%3D-instance_method" title="#== (instance method)">- (Boolean) <strong>=</strong>(other) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Compares this node and another object (only other <tt><a href="" title="Sass::Tree::Node (class)">Tree::Node</a></tt>s will be equal).</span>
  
</li>

    
      <li class="protected ">
  <span class="summary_signature">
    
      <a href="#balance-instance_method" title="#balance (instance method)">- <strong>balance</strong>(*args) </a>
    

    
  </span>
  
  
  <span class="note title protected">protected</span>
  
  

  
    <span class="summary_desc"></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#bubbles%3F-instance_method" title="#bubbles? (instance method)">- (Boolean) <strong>bubbles?</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Whether or not this node bubbles up through RuleNodes.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#deep_copy-instance_method" title="#deep_copy (instance method)">- (Node) <strong>deep_copy</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Return a deep clone of this node.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#each-instance_method" title="#each (instance method)">- <strong>each</strong> {|node| ... }</a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Iterates through each node in the tree rooted at this node in a pre-order walk.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#initialize-instance_method" title="#initialize (instance method)">- (Node) <strong>initialize</strong> </a>
    

    
  </span>
  
    <span class="note title constructor">constructor</span>
  
  
  
  
  

  
    <span class="summary_desc">A new instance of Node.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#inspect-instance_method" title="#inspect (instance method)">- (String) <strong>inspect</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Returns a representation of the node for debugging purposes.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#invisible%3F-instance_method" title="#invisible? (instance method)">- (Boolean) <strong>invisible?</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">True if <tt><a href="#to_s-instance_method" title="Sass::Tree::Node#to_s (method)">#to_s</a></tt> will return <code>nil</code>; that is, if the node shouldn&#8217;t be rendered.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#style-instance_method" title="#style (instance method)">- (Symbol) <strong>style</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">The output style.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#to_s-instance_method" title="#to_s (instance method)">- (String<sup>?</sup>) <strong>to_s</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Computes the CSS corresponding to this static CSS tree.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#to_sass-instance_method" title="#to_sass (instance method)">- (String) <strong>to_sass</strong>(options = {}) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Converts a node to Sass code that will generate it.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#to_scss-instance_method" title="#to_scss (instance method)">- (String) <strong>to_scss</strong>(options = {}) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Converts a node to SCSS code that will generate it.</span>
  
</li>

    
  </ul>

  <div id="constructor_details" class="method_details_list">
  <h2>Constructor Details</h2>
  
    <div class="method_details first">
  <p class="signature first" id="initialize-instance_method">
  
    - (<tt><a href="" title="Sass::Tree::Node (class)">Node</a></tt>) <strong>initialize</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>A new instance of Node</p>

  </div>
</div>
<div class="tags">
  
</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


60
61
62</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/node.rb', line 60</span>

def initialize
  @children = []
end</pre>
    </td>
  </tr>
</table>
</div>
  
</div>

  <div id="instance_attr_details" class="attr_details">
    <h2>Instance Attribute Details</h2>
    
      
      <span id="children=-instance_method"></span>
      <span id="children-instance_method"></span>
      <div class="method_details first">
  <p class="signature first" id="children-instance_method">
  
    - (<tt>Array&lt;<a href="" title="Sass::Tree::Node (class)">Tree::Node</a>&gt;</tt>) <strong>children</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The child nodes of this node.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Array&lt;<a href="" title="Sass::Tree::Node (class)">Tree::Node</a>&gt;</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


35
36
37</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/node.rb', line 35</span>

def children
  @children
end</pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id="filename=-instance_method"></span>
      <span id="filename-instance_method"></span>
      <div class="method_details ">
  <p class="signature " id="filename-instance_method">
  
    - (<tt>String</tt>) <strong>filename</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The name of the document on which this node appeared.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>String</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


81
82
83</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/node.rb', line 81</span>

def filename
  @filename || (@options && @options[:filename])
end</pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id="has_children=-instance_method"></span>
      <span id="has_children-instance_method"></span>
      <div class="method_details ">
  <p class="signature " id="has_children-instance_method">
  
    - (<tt>Boolean</tt>) <strong>has_children</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Whether or not this node has child nodes. This may be true even when <tt><a href="#children-instance_method" title="Sass::Tree::Node#children (method)">#children</a></tt> is empty, in which case this node has an empty block (e.g. <code>{}</code>).</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Boolean</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


42
43
44</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/node.rb', line 42</span>

def has_children
  @has_children
end</pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id="line=-instance_method"></span>
      <span id="line-instance_method"></span>
      <div class="method_details ">
  <p class="signature " id="line-instance_method">
  
    - (<tt>Fixnum</tt>) <strong>line</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The line of the document on which this node appeared.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Fixnum</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


47
48
49</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/node.rb', line 47</span>

def line
  @line
end</pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id="options=-instance_method"></span>
      <span id="options-instance_method"></span>
      <div class="method_details ">
  <p class="signature " id="options-instance_method">
  
    - (<tt>{Symbol =&gt; Object}</tt>) <strong>options</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The options hash for the node. See <a href="file.SASS_REFERENCE.html#sass_options" tppabs="http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#sass_options" title="the Sass options documentation">the Sass options documentation</a>.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>{Symbol =&gt; Object}</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


58
59
60</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/node.rb', line 58</span>

def options
  @options
end</pre>
    </td>
  </tr>
</table>
</div>
    
  </div>


  <div id="instance_method_details" class="method_details_list">
    <h2>Instance Method Details</h2>
    
    
      <div class="method_details first">
  <p class="signature first" id="<<-instance_method">
  
    - <strong>&lt;&lt;</strong>(child) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Appends a child to the node.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt><a href="" title="Sass::Tree::Node (class)">Tree::Node</a></tt>, <tt>Array&lt;<a href="" title="Sass::Tree::Node (class)">Tree::Node</a>&gt;</tt>)</span>
      
      
        <span class='name'>child</span>
      
      
      
        &mdash;
        The child node or nodes
      
    </li>
  
</ul>
<h3>Raises:</h3>
<ul class="raise">
  
    <li>
      
        <span class='type'>(<tt><a href="SyntaxError.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/SyntaxError.html" title="Sass::SyntaxError (class)">Sass::SyntaxError</a></tt>)</span>
      
      
      
      
        &mdash;
        if <code>child</code> is invalid
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


89
90
91
92
93
94
95
96
97</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/node.rb', line 89</span>

def <<(child)
  return if child.nil?
  if child.is_a?(Array)
    child.each {|c| self << c}
  else
    self.has_children = true
    @children << child
  end
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="==-instance_method">
  
    - (<tt>Boolean</tt>) <strong>==</strong>(other) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Compares this node and another object (only other <tt><a href="" title="Sass::Tree::Node (class)">Tree::Node</a></tt>s will be equal). This does a structural comparison; if the contents of the nodes and all the child nodes are equivalent, then the nodes are as well.</p>

<p>Only static nodes need to override this.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>Object</tt>)</span>
      
      
        <span class='name'>other</span>
      
      
      
        &mdash;
        The object to compare with
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Boolean</tt>)</span>
      
      
      
      
        &mdash;
        Whether or not this node and the other object are the same
      
    </li>
  
</ul>

  <h3>See Also:</h3>
  <ul class="see">
    
      <li><a href="Tree.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree.html" title="Sass::Tree (module)">Sass::Tree</a></li>
    
  </ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


110
111
112</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/node.rb', line 110</span>

def ==(other)
  self.class == other.class && other.children == children
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="balance-instance_method">
  
    - <strong>balance</strong>(*args)  <span class="extras">(protected)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    

  </div>
</div>
<div class="tags">
  <h3>Raises:</h3>
<ul class="raise">
  
    <li>
      
        <span class='type'>(<tt><a href="SyntaxError.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/SyntaxError.html" title="Sass::SyntaxError (class)">Sass::SyntaxError</a></tt>)</span>
      
      
      
      
        &mdash;
        if the brackets aren&#8217;t balanced
      
    </li>
  
</ul>

  <h3>See Also:</h3>
  <ul class="see">
    
      <li>Sass::Shared.balance</li>
    
  </ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


189
190
191
192
193</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/node.rb', line 189</span>

def balance(*args)
  res = Sass::Shared.balance(*args)
  return res if res
  raise Sass::SyntaxError.new("Unbalanced brackets.", :line => line)
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="bubbles?-instance_method">
  
    - (<tt>Boolean</tt>) <strong>bubbles?</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Whether or not this node bubbles up through RuleNodes.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Boolean</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


181
182
183</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/node.rb', line 181</span>

def bubbles?
  false
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="deep_copy-instance_method">
  
    - (<tt><a href="" title="Sass::Tree::Node (class)">Node</a></tt>) <strong>deep_copy</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Return a deep clone of this node. The child nodes are cloned, but options are not.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="" title="Sass::Tree::Node (class)">Node</a></tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


174
175
176</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/node.rb', line 174</span>

def deep_copy
  Sass::Tree::Visitors::DeepCopy.visit(self)
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="each-instance_method">
  
    - <strong>each</strong> {|node| ... }
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Iterates through each node in the tree rooted at this node in a pre-order walk.</p>

  </div>
</div>
<div class="tags">
  <h3>Yields:</h3>
<ul class="yield">
  
    <li>
      
        <span class='type'></span>
      
      
      
      
        
        node
      
    </li>
  
</ul>
<h3>Yield Parameters:</h3>
<ul class="yieldparam">
  
    <li>
      
        <span class='type'>(<tt><a href="" title="Sass::Tree::Node (class)">Node</a></tt>)</span>
      
      
        <span class='name'>node</span>
      
      
      
        &mdash;
        a node in the tree
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


149
150
151
152</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/node.rb', line 149</span>

def each
  yield self
  children.each {|c| c.each {|n| yield n}}
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="inspect-instance_method">
  
    - (<tt>String</tt>) <strong>inspect</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns a representation of the node for debugging purposes.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>String</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


139
140
141
142</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/node.rb', line 139</span>

def inspect
  return self.class.to_s unless has_children
  "(#{self.class} #{children.map {|c| c.inspect}.join(' ')})"
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="invisible?-instance_method">
  
    - (<tt>Boolean</tt>) <strong>invisible?</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>True if <tt><a href="#to_s-instance_method" title="Sass::Tree::Node#to_s (method)">#to_s</a></tt> will return <code>nil</code>; that is, if the node shouldn&#8217;t be rendered. Should only be called in a static tree.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Boolean</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


119</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/node.rb', line 119</span>

def invisible?; false end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="style-instance_method">
  
    - (<tt>Symbol</tt>) <strong>style</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The output style. See <a href="file.SASS_REFERENCE.html#sass_options" tppabs="http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#sass_options" title="the Sass options documentation">the Sass options documentation</a>.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Symbol</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


124
125
126</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/node.rb', line 124</span>

def style
  @options[:style]
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="to_s-instance_method">
  
    - (<tt>String</tt><sup>?</sup>) <strong>to_s</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Computes the CSS corresponding to this static CSS tree.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>String</tt>, <tt>nil</tt>)</span>
      
      
      
      
        &mdash;
        The resulting CSS
      
    </li>
  
</ul>

  <h3>See Also:</h3>
  <ul class="see">
    
      <li><a href="Tree.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree.html" title="Sass::Tree (module)">Sass::Tree</a></li>
    
  </ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


132
133
134</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/node.rb', line 132</span>

def to_s
  Sass::Tree::Visitors::ToCss.visit(self)
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="to_sass-instance_method">
  
    - (<tt>String</tt>) <strong>to_sass</strong>(options = {}) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Converts a node to Sass code that will generate it.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>{Symbol =&gt; Object}</tt>)</span>
      
      
        <span class='name'>options</span>
      
      
        <em class="default">(defaults to: <tt>{}</tt>)</em>
      
      
        &mdash;
        An options hash (see <tt><a href="CSS.html#initialize-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/CSS.html#initialize-instance_method" title="Sass::CSS#initialize (method)">Sass::CSS#initialize</a></tt>)
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>String</tt>)</span>
      
      
      
      
        &mdash;
        The Sass code corresponding to the node
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


158
159
160</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/node.rb', line 158</span>

def to_sass(options = {})
  Sass::Tree::Visitors::Convert.visit(self, options, :sass)
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="to_scss-instance_method">
  
    - (<tt>String</tt>) <strong>to_scss</strong>(options = {}) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Converts a node to SCSS code that will generate it.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>{Symbol =&gt; Object}</tt>)</span>
      
      
        <span class='name'>options</span>
      
      
        <em class="default">(defaults to: <tt>{}</tt>)</em>
      
      
        &mdash;
        An options hash (see <tt><a href="CSS.html#initialize-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/CSS.html#initialize-instance_method" title="Sass::CSS#initialize (method)">Sass::CSS#initialize</a></tt>)
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>String</tt>)</span>
      
      
      
      
        &mdash;
        The Sass code corresponding to the node
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


166
167
168</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/node.rb', line 166</span>

def to_scss(options = {})
  Sass::Tree::Visitors::Convert.visit(self, options, :scss)
end</pre>
    </td>
  </tr>
</table>
</div>
    
  </div>

</div>
    
    <div id="footer">
  Generated on Fri Mar  8 20:34:05 2013 by 
  <a href="javascript:if(confirm(%27http://yardoc.org/  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?%27))window.location=%27http://yardoc.org/%27" tppabs="http://yardoc.org/" title="Yay! A Ruby Documentation Tool">yard</a>
  0.5.3 (ruby-1.8.7).
</div>


  <script type="text/javascript">
  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  </script>
  <script type="text/javascript">
  try {
  var pageTracker = _gat._getTracker("UA-535380-8");
  pageTracker._trackPageview();
  } catch(err) {}</script>


  </body>
</html>